package com.pt25.service.sys.repository.mysql.persistence;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pt25.service.sys.domain.admin.ddo.AdminPermission;
import com.pt25.service.sys.repository.mysql.po.AdminPermissionPo;

import java.util.List;
import java.util.Set;

public interface AdminPermissionRepo extends IService<AdminPermissionPo> {
    AdminPermission getAdminPermission(Long id);
    List<AdminPermission> getAdminPermissionsByIds(Set<Long> ids);
    AdminPermission getAdminPermissionByPermissionOrTitle(AdminPermissionPo adminPermissionPO);
    List<AdminPermission> listAdminPermission();
    List<AdminPermission> listAdminPermissionByParentId(Long id);
    void removePermissionByPermissionIds(Set<Long> ids);
}
